package com.xbongbong.saas.enums;

import com.xbongbong.pro.enums.permission.enums.ProPermissionAliasEnum;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * 列表页批量操作按钮
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/25 15:48
 * @since v1.0
 */
@Getter
public enum ListBatchEnum {
    // 列表页批量操作按钮
    CUSTOMER_DISTRIBUTION(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_BATCH_ADD_TEAM(XbbRefTypeEnum.CUSTOMER.getCode(), SaasBatchEnum.ADD_TEAM, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_HANDOVER(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CUSTOMER_HANDOVER.getAlias()),
    CUSTOMER_ISOLATION_HANDOVER(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.HANDOVER_CHANGE_MAIN, ProPermissionAliasEnum.CUSTOMER_HANDOVER.getAlias()),
    CUSTOMER_BATCH_EDIT(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_BACK_CUSTOMER(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.BACK_CUSTOMER, ProPermissionAliasEnum.CUSTOMER_BACK.getAlias()),
    CUSTOMER_ADD_VISIT_PLAN(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.ADD_VISIT_PLAN, ProPermissionAliasEnum.COMMUNICATE_PLAN_ADD.getAlias()),
    CUSTOMER_BATCH_DISBAND_TEAM(XbbRefTypeEnum.CUSTOMER.getCode(), SaasBatchEnum.DISBAND_TEAM, "1"),
    // 客户删除按钮不判断权限
    CUSTOMER_DEL_MAIN_USER(XbbRefTypeEnum.CUSTOMER.getCode(), SaasBatchEnum.DEL_MAIN_USER, "1"),
    CUSTOMER_ADD_TEAM_PERSON(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_ADD_ISOLATION_TEAM_PERSON(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.ADD_ISOLATION_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_DEL_COUSER(XbbRefTypeEnum.CUSTOMER.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_DEL_ISOLATION_COUSER(XbbRefTypeEnum.CUSTOMER.getCode(), SaasBatchEnum.DEL_ISOLATION_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_ARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_COMMUNICATE_NOTIFY(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    CUSTOMER_SEND_SMS(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    CUSTOMER_UNARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_DEL(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CUSTOMER_DELETE.getAlias()),
    CUSTOMER_MERGE(XbbRefTypeEnum.CUSTOMER.getCode(), SaasBatchEnum.MERGE_CUSTOMER, ProPermissionAliasEnum.MERGE_CUSTOMER.getAlias()),
    CUSTOMER_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.CUSTOMER.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CUSTOMER_SWITCH_PUBLIC_GROUP.getAlias()),

    CUSTOMER_FOCUS_DISTRIBUTION(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_FOCUS_ADD_TEAM(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(), SaasBatchEnum.ADD_TEAM, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_FOCUS_HANDOVER(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CUSTOMER_HANDOVER.getAlias()),
    CUSTOMER_FOCUS_BATCH_EDIT(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_FOCUS_BACK_CUSTOMER(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.BACK_CUSTOMER, ProPermissionAliasEnum.CUSTOMER_BACK.getAlias()),
    CUSTOMER_FOCUS_ADD_VISIT_PLAN(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.ADD_VISIT_PLAN, ProPermissionAliasEnum.COMMUNICATE_PLAN_ADD.getAlias()),
    // 客户删除按钮不判断权限,
    CUSTOMER_FOCUS_DEL_MAIN_USER(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(), SaasBatchEnum.DEL_MAIN_USER, "1"),
    CUSTOMER_FOCUS_DISBAND_TEAM(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(), SaasBatchEnum.DISBAND_TEAM, "1"),
    CUSTOMER_FOCUS_ADD_TEAM_PERSON(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_FOCUS_DEL_COUSER(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_FOCUS_ARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_FOCUS_UNARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_FOCUS_DEL(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CUSTOMER_DELETE.getAlias()),
    CUSTOMER_FOCUS_COMMUNICATE_NOTIFY(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    CUSTOMER_FOCUS_SEND_SMS(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    CUSTOMER_FOCUS_MERGE(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(), SaasBatchEnum.MERGE_CUSTOMER, ProPermissionAliasEnum.MERGE_CUSTOMER.getAlias()),
    CUSTOMER_FOCUS_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.CUSTOMER_FOCUS.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CUSTOMER_SWITCH_PUBLIC_GROUP.getAlias()),

    CUSTOMER_DEAL_DISTRIBUTION(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_DEAL_ADD_TEAM(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(), SaasBatchEnum.ADD_TEAM, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_DEAL_HANDOVER(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CUSTOMER_HANDOVER.getAlias()),
    CUSTOMER_DEAL_BATCH_EDIT(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_DEAL_BACK_CUSTOMER(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.BACK_CUSTOMER, ProPermissionAliasEnum.CUSTOMER_BACK.getAlias()),
    CUSTOMER_DEAL_ADD_VISIT_PLAN(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.ADD_VISIT_PLAN, ProPermissionAliasEnum.COMMUNICATE_PLAN_ADD.getAlias()),
    // 客户删除按钮不判断权限
    CUSTOMER_DEAL_DEL_MAIN_USER(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(), SaasBatchEnum.DEL_MAIN_USER, "1"),
    CUSTOMER_DEAL_DISBAND_TEAM(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(), SaasBatchEnum.DISBAND_TEAM, "1"),
    CUSTOMER_DEAL_ADD_TEAM_PERSON(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_DEAL_DEL_COUSER(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_DEAL_ARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_DEAL_UNARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_DEAL_DEL(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CUSTOMER_DELETE.getAlias()),
    CUSTOMER_DEAL_COMMUNICATE_NOTIFY(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    CUSTOMER_DEAL_SEND_SMS(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    CUSTOMER_DEAL_MERGE(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(), SaasBatchEnum.MERGE_CUSTOMER, ProPermissionAliasEnum.MERGE_CUSTOMER.getAlias()),
    CUSTOMER_DEAL_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.CUSTOMER_DEAL.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CUSTOMER_SWITCH_PUBLIC_GROUP.getAlias()),

    CUSTOMER_FOLLOW_DISTRIBUTION(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_FOLLOW_ADD_TEAM(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(), SaasBatchEnum.ADD_TEAM, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_FOLLOW_HANDOVER(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CUSTOMER_HANDOVER.getAlias()),
    CUSTOMER_FOLLOW_BATCH_EDIT(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_FOLLOW_BACK_CUSTOMER(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.BACK_CUSTOMER, ProPermissionAliasEnum.CUSTOMER_BACK.getAlias()),
    CUSTOMER_FOLLOW_ADD_VISIT_PLAN(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.ADD_VISIT_PLAN, ProPermissionAliasEnum.COMMUNICATE_PLAN_ADD.getAlias()),
    // 客户删除按钮不判断权限
    CUSTOMER_FOLLOW_DEL_MAIN_USER(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(), SaasBatchEnum.DEL_MAIN_USER, "1"),
    CUSTOMER_FOLLOW_DISBAND_TEAM(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(), SaasBatchEnum.DISBAND_TEAM, "1"),
    CUSTOMER_FOLLOW_ADD_TEAM_PERSON(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_FOLLOW_DEL_COUSER(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_FOLLOW_ARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_FOLLOW_UNARCHIVE_BATCH(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.CUSTOMER_ARICHIVE.getAlias()),
    CUSTOMER_FOLLOW_DEL(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CUSTOMER_DELETE.getAlias()),
    CUSTOMER_FOLLOW_COMMUNICATE_NOTIFY(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    CUSTOMER_FOLLOW_SEND_SMS(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    CUSTOMER_FOLLOW_MERGE(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(), SaasBatchEnum.MERGE_CUSTOMER, ProPermissionAliasEnum.MERGE_CUSTOMER.getAlias()),
    CUSTOMER_FOLLOW_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.CUSTOMER_FOLLOW.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CUSTOMER_SWITCH_PUBLIC_GROUP.getAlias()),


    CUSTOMER_PUBLIC_DISTRIBUTION(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CUSTOMER_DISTRIBUTION.getAlias()),
    CUSTOMER_PUBLIC_GET_CUSTOMER(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.GET_CUSTOMER, ProPermissionAliasEnum.CUSTOMER_GAIN.getAlias()),
    CUSTOMER_PUBLIC_BATCH_EDIT(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CUSTOMER_UPDATE.getAlias()),
    CUSTOMER_PUBLIC_DEL(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CUSTOMER_DELETE.getAlias()),
    CUSTOMER_PUBLIC_SEND_SMS(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    CUSTOMER_PUBLIC_MERGE(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.MERGE_CUSTOMER, ProPermissionAliasEnum.MERGE_CUSTOMER.getAlias()),
    CUSTOMER_PUBLIC_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.CUSTOMER_PUBLIC.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CUSTOMER_SWITCH_PUBLIC_GROUP.getAlias()),


    CUSTOMER_RECYCLE_REVERT(XbbRefTypeEnum.CUSTOMER_RECYCLE.getCode(),SaasBatchEnum.REVERT_BATCH, "1"),
    CUSTOMER_RECYCLE_DELETE_COMPLETE(XbbRefTypeEnum.CUSTOMER_RECYCLE.getCode(),SaasBatchEnum.REMOVE_COMPLETELY, ProPermissionAliasEnum.CUSTOMER_DELETE.getAlias()),

    CONTACT_BATCH_EDIT(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CONTACT_UPDATE.getAlias()),
    CONTACT_BATCH_HANDOVER(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CONTACT_HANDOVER.getAlias()),
    CONTACT_BATCH_ADD_MAIN_USER(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.CONTACT_UPDATE.getAlias()),
    CONTACT_BATCH_DEL_MAIN_USER(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.CONTACT_UPDATE.getAlias()),
    CONTACT_BATCH_ADD_COUSER(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CONTACT_UPDATE.getAlias()),
    CONTACT_BATCH_DEL_COUSER(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CONTACT_UPDATE.getAlias()),
    CONTACT_DEL(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CONTACT_DELETE.getAlias()),
    CONTACT_SEND_SMS(XbbRefTypeEnum.CONTACT.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    CONTRACT_BATCH_EDIT(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CONTRACT_UPDATE.getAlias()),
    CONTRACT_HANDOVER(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CONTRACT_HANDOVER.getAlias()),
    CONTRACT_BATCH_PRINT(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.CONTRACT_PRINT.getAlias()),
    CONTRACT_ADD_MAIN_USER(XbbRefTypeEnum.CONTRACT.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.CONTRACT_UPDATE.getAlias()),
    CONTRACT_DEL_MAIN_USER(XbbRefTypeEnum.CONTRACT.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.CONTRACT_UPDATE.getAlias()),
    CONTRACT_ADD_TEAM_PERSON(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CONTRACT_UPDATE.getAlias()),
    CONTRACT_DEL_COUSER(XbbRefTypeEnum.CONTRACT.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CONTRACT_UPDATE.getAlias()),
    CONTRACT_ARCHIVE_BATCH(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.CONTRACT_ARCHIVE.getAlias()),
    CONTRACT_UNARCHIVE_BATCH(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.CONTRACT_ARCHIVE.getAlias()),
    CONTRACT_DEL(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CONTRACT_DELETE.getAlias()),
    CONTRACT_MERGE_INVOICE(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.MERGE_INVOICE, ProPermissionAliasEnum.INVOICE_ADD.getAlias()),
    CONTRACT_MERGE_PAYMENT(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.MERGE_PAYMENT, ProPermissionAliasEnum.PAYMENT_SHEET_ADD.getAlias()),
    CONTRACT_COMMUNICATE_NOTIFY(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    CONTRACT_COMPARE(XbbRefTypeEnum.CONTRACT.getCode(),SaasBatchEnum.CONTRACT_COMPARE, ProPermissionAliasEnum.CONTRACT_COMPARE_RESULT_ADD.getAlias()),

    ALL_OPPORTUNITY_BATCH_EDIT(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    ALL_OPPORTUNITY_HANDOVER(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.OPPORTUNITY_HANDOVER.getAlias()),
    ALL_OPPORTUNITY_BATCH_PRINT(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.OPPORTUNITY_PRINT.getAlias()),
    ALL_OPPOPTUNITY_ADD_MAIN_USER(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    ALL_OPPOPTUNITY_DEL_MAIN_USER(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    ALL_OPPOPTUNITY_ADD_COUSER(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    ALL_OPPOPTUNITY_DEL_COUSER(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    ALL_OPPORTUNITY_ARCHIVE_BATCH(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.OPPORTUNITY_ARCHIVE.getAlias()),
    ALL_OPPORTUNITY_UNARCHIVE_BATCH(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.OPPORTUNITY_ARCHIVE.getAlias()),
    ALL_OPPORTUNITY_DEL(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.OPPORTUNITY_DELETE.getAlias()),
    ALL_OPPORTUNITY_COMMUNICATE_NOTIFY(XbbRefTypeEnum.ALL_OPPORTUNITY.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),

    KEY_OPPORTUNITY_BATCH_EDIT(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.OPPORTUNITY_ADD.getAlias()),
    KEY_OPPORTUNITY_HANDOVER(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.OPPORTUNITY_HANDOVER.getAlias()),
    KEY_OPPORTUNITY_BATCH_PRINT(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.OPPORTUNITY_PRINT.getAlias()),
    KEY_OPPORTUNITY_ADD_MAIN_USER(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    KEY_OPPORTUNITY_DEL_MAIN_USER(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    KEY_OPPORTUNITY_ADD_COUSER(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    KEY_OPPORTUNITY_DEL_COUSER(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.OPPORTUNITY_UPDATE.getAlias()),
    KEY_OPPORTUNITY_ARCHIVE_BATCH(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.OPPORTUNITY_ARCHIVE.getAlias()),
    KEY_OPPORTUNITY_UNARCHIVE_BATCH(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.OPPORTUNITY_ARCHIVE.getAlias()),
    KEY_OPPORTUNITY_DEL(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.OPPORTUNITY_DELETE.getAlias()),
    KEY_OPPORTUNITY_COMMUNICATE_NOTIFY(XbbRefTypeEnum.KEY_OPPORTUNITY.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),

    SUPPLIER_BATCH_EDIT(XbbRefTypeEnum.SUPPLIER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.SUPPLIER_UPDATE.getAlias()),
    SUPPLIER_HANDOVER(XbbRefTypeEnum.SUPPLIER.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.SUPPLIER_HANDOVER.getAlias()),
    SUPPLIER_COMMUNICATE_NOTIFY(XbbRefTypeEnum.SUPPLIER.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    SUPPLIER_ADD_MAIN_USER(XbbRefTypeEnum.SUPPLIER.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.SUPPLIER_UPDATE.getAlias()),
    SUPPLIER_DEL_MAIN_USER(XbbRefTypeEnum.SUPPLIER.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.SUPPLIER_UPDATE.getAlias()),
    SUPPLIER_ADD_COUSER(XbbRefTypeEnum.SUPPLIER.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.SUPPLIER_UPDATE.getAlias()),
    SUPPLIER_DEL_COUSER(XbbRefTypeEnum.SUPPLIER.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.SUPPLIER_UPDATE.getAlias()),
    SUPPLIER_DEL(XbbRefTypeEnum.SUPPLIER.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.SUPPLIER_DELETE.getAlias()),

    SUPPLIER_CONTACT_BATCH_EDIT(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.SUPPLIER_CONTACT_UPDATE.getAlias()),
    SUPPLIER_CONTACT_BATCH_HANDOVER(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.SUPPLIER_CONTACT_HANDOVER.getAlias()),
    SUPPLIER_CONTACT_BATCH_ADD_MAIN_USER(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.SUPPLIER_CONTACT_UPDATE.getAlias()),
    SUPPLIER_CONTACT_BATCH_DEL_MAIN_USER(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.SUPPLIER_CONTACT_UPDATE.getAlias()),
    SUPPLIER_CONTACT_BATCH_ADD_COUSER(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.SUPPLIER_CONTACT_UPDATE.getAlias()),
    SUPPLIER_CONTACT_BATCH_DEL_COUSER(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.SUPPLIER_CONTACT_UPDATE.getAlias()),
    SUPPLIER_CONTACT_DEL(XbbRefTypeEnum.SUPPLIER_CONTACT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.SUPPLIER_CONTACT_DELETE.getAlias()),

    PURCHASE_BATCH_EDIT(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PURCHASE_UPDATE.getAlias()),
    PURCHASE_HANDOVER(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PURCHASE_HANDOVER.getAlias()),
    PURCHASE_BATCH_PRINT(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PURCHASE_PRINT.getAlias()),
    PURCHASE_COMMUNICATE_NOTIFY(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    PURCHASE_MERGE_PAY_SHEET(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.MERGE_PAY_PAID, ProPermissionAliasEnum.PAY_SHEET_ADD.getAlias()),
    PURCHASE_MERGE_INVOICE(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.MEEGE_PURCHASE_INVOICE, ProPermissionAliasEnum.PURCHASE_INVOICE_ADD.getAlias()),
    PURCHASE_ADD_MAIN_USER(XbbRefTypeEnum.PURCHASE.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.PURCHASE_UPDATE.getAlias()),
    PURCHASE_DEL_MAIN_USER(XbbRefTypeEnum.PURCHASE.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.PURCHASE_UPDATE.getAlias()),
    PURCHASE_ADD_COUSER(XbbRefTypeEnum.PURCHASE.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.PURCHASE_UPDATE.getAlias()),
    PURCHASE_DEL_COUSER(XbbRefTypeEnum.PURCHASE.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.PURCHASE_UPDATE.getAlias()),
    PURCHASE_DEL(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PURCHASE_DELETE.getAlias()),
    PURCHASE_COMPARE(XbbRefTypeEnum.PURCHASE.getCode(),SaasBatchEnum.CONTRACT_COMPARE, ProPermissionAliasEnum.CONTRACT_COMPARE_RESULT_ADD.getAlias()),

    BOM_BILL_BATCH_EDIT(XbbRefTypeEnum.BOM_BILL.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.BOM_BILL_UPDATE.getAlias()),
    BOM_BILL_HANDOVER(XbbRefTypeEnum.BOM_BILL.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.BOMBILL_HANDOVER.getAlias()),
    BOM_BILL_PRINT(XbbRefTypeEnum.BOM_BILL.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.BOM_BILL_PRINT.getAlias()),
    BOM_BILL_ADD_MAIN_USER(XbbRefTypeEnum.BOM_BILL.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.BOM_BILL_UPDATE.getAlias()),
    BOM_BILL_DEL_MAIN_USER(XbbRefTypeEnum.BOM_BILL.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.BOM_BILL_UPDATE.getAlias()),
    BOM_BILL_ADD_COUSER(XbbRefTypeEnum.BOM_BILL.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.BOM_BILL_UPDATE.getAlias()),
    BOM_BILL_DEL_COUSER(XbbRefTypeEnum.BOM_BILL.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.BOM_BILL_UPDATE.getAlias()),
    BOM_BILL_DEL(XbbRefTypeEnum.BOM_BILL.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.BOM_BILL_DELETE.getAlias()),

    PRODUCTION_ORDER_BATCH_EDIT(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PRODUCTION_ORDER_UPDATE.getAlias()),
    PRODUCTION_ORDER_HANDOVER(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PRODUCTION_ORDER_HANDOVER.getAlias()),
    PRODUCTION_ORDER_PRINT(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PRODUCTION_ORDER_PRINT.getAlias()),
    PRODUCTION_ORDER_FINISH(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasBatchEnum.FINISH, ProPermissionAliasEnum.PRODUCTION_ORDER_UPDATE.getAlias()),
    PRODUCTION_ORDER_ADD_MAIN_USER(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.PRODUCTION_ORDER_UPDATE.getAlias()),
    PRODUCTION_ORDER_DEL_MAIN_USER(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.PRODUCTION_ORDER_UPDATE.getAlias()),
    PRODUCTION_ORDER_ADD_COUSER(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.PRODUCTION_ORDER_UPDATE.getAlias()),
    PRODUCTION_ORDER_DEL_COUSER(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.PRODUCTION_ORDER_UPDATE.getAlias()),
    PRODUCTION_ORDER_DEL(XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PRODUCTION_ORDER_DELETE.getAlias()),

    PAYMENT_BATCH_EDIT(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PAYMENT_UPDATE.getAlias()),
    PAYMENT_BATCH_HANDOVER(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PAYMENT_HANDOVER.getAlias()),
    PAYMENT_BATCH_PRINT(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PAYMENT_PRINT.getAlias()),
    PAYMENT_BATCH_ADD_MAIN_USER(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.PAYMENT_UPDATE.getAlias()),
    PAYMENT_BATCH_DEL_MAIN_USER(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.PAYMENT_UPDATE.getAlias()),
    PAYMENT_BATCH_ADD_COUSER(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.PAYMENT_UPDATE.getAlias()),
    PAYMENT_BATCH_DEL_COUSER(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.PAYMENT_UPDATE.getAlias()),
    PAYMENT_SET_PAID(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.SET_PAID, ProPermissionAliasEnum.PAYMENT_SHEET_ADD.getAlias()),
    PAYMENT_MERGE_PAYMENT(XbbRefTypeEnum.PAYMENT.getCode(), SaasBatchEnum.MERGE_PAYMENT, ProPermissionAliasEnum.PAYMENT_SHEET_ADD.getAlias()),
    PAYMENT_MERGE_INVOICE(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.MERGE_INVOICE, ProPermissionAliasEnum.INVOICE_ADD.getAlias()),
    //PAYMENT_DEL(XbbRefTypeEnum.PAYMENT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PAYMENT_DELETE.getAlias()),

    PAY_PLAN_BATCH_EDIT(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PAY_PLAN_UPDATE.getAlias()),
    PAY_PLAN_BATCH_HANDOVER(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PAY_PLAN_HANDOVER.getAlias()),
    PAY_PLAN_BATCH_PRINT(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PAY_PLAN_PRINT.getAlias()),
    PAY_PLAN_BATCH_ADD_MAIN_USER(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.PAY_PLAN_UPDATE.getAlias()),
    PAY_PLAN_BATCH_DEL_MAIN_USER(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.PAY_PLAN_UPDATE.getAlias()),
    PAY_PLAN_BATCH_ADD_COUSER(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.PAY_PLAN_UPDATE.getAlias()),
    PAY_PLAN_BATCH_DEL_COUSER(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.PAY_PLAN_UPDATE.getAlias()),
    PAY_PLAN_SET_PAID(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.SET_PAY_PAID, ProPermissionAliasEnum.PAY_SHEET_ADD.getAlias()),
    PAY_PLAN_MERGE_PAYMENT(XbbRefTypeEnum.PAY_PLAN.getCode(), SaasBatchEnum.MERGE_PAY_PAID, ProPermissionAliasEnum.PAY_SHEET_ADD.getAlias()),
    PAY_PLAN_MERGE_INVOICE(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.MEEGE_PURCHASE_INVOICE, ProPermissionAliasEnum.PURCHASE_INVOICE_ADD.getAlias()),
    PAY_PLAN_DEL(XbbRefTypeEnum.PAY_PLAN.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PAY_PLAN_DELETE.getAlias()),

    INVOICE_BATCH_EDIT(XbbRefTypeEnum.INVOICE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.INVOICE_UPDATE.getAlias()),
    INVOICE_BATCH_PRINT(XbbRefTypeEnum.INVOICE.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.INVOICE_PRINT.getAlias()),
    INVOICE_CANCEL(XbbRefTypeEnum.INVOICE.getCode(),SaasBatchEnum.CANCEL, ProPermissionAliasEnum.INVOICE_CANCEL.getAlias()),
    INVOICE_REVERT_CANCEL(XbbRefTypeEnum.INVOICE.getCode(),SaasBatchEnum.REVERT_CANCEL, "1"),
    INVOICE_DEL(XbbRefTypeEnum.INVOICE.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.INVOICE_DELETE.getAlias()),

    ASSEMBLE_BATCH_EDIT(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.ASSEMBLE_UPDATE.getAlias()),
    ASSEMBLE_PRINT(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.ASSEMBLE_PRINT.getAlias()),
    ASSEMBLE_HANDOVER(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.ASSEMBLE_HANDOVER.getAlias()),
    ASSEMBLE_DEL(XbbRefTypeEnum.ASSEMBLE.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.ASSEMBLE_DELETE.getAlias()),

    PURCHASE_INSTOCK_BATCH_EDIT(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PURCHASE_INSTOCK_UPDATE.getAlias()),
    PURCHASE_INSTOCK_PRINT(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PURCHASE_INSTOCK_PRINT.getAlias()),
    PURCHASE_INSTOCK_HANDOVER(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(), SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PURCHASE_INSTOCK_HANDOVER.getAlias()),
    PURCHASE_INSTOCK_DEL(XbbRefTypeEnum.PURCHASE_INSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PURCHASE_INSTOCK_DELETE.getAlias()),

    REFUND_INSTOCK_BATCH_EDIT(XbbRefTypeEnum.REFUND_INSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.REFUND_INSTOCK_UPDATE.getAlias()),
    REFUND_INSTOCK_PRINT(XbbRefTypeEnum.REFUND_INSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.REFUND_INSTOCK_PRINT.getAlias()),
    REFUND_INSTOCK_HANDOVER(XbbRefTypeEnum.REFUND_INSTOCK.getCode(), SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.REFUND_INSTOCK_HANDOVER.getAlias()),
    REFUND_INSTOCK_DEL(XbbRefTypeEnum.REFUND_INSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.REFUND_INSTOCK_DELETE.getAlias()),

    OTHER_INSTOCK_BATCH_EDIT(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.INSTOCK_UPDATE.getAlias()),
    OTHER_INSTOCK_PRINT(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.INSTOCK_PRINT.getAlias()),
    OTHER_INSTOCK_HANDOVER(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.INSTOCK_HANDOVER.getAlias()),
    OTHER_INSTOCK_DEL(XbbRefTypeEnum.OTHER_INSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.INSTOCK_DELETE.getAlias()),

    PRODUCTION_INSTOCK_BATCH_EDIT(XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PRODUCTION_INSTOCK_UPDATE.getAlias()),
    PRODUCTION_INSTOCK_PRINT(XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PRODUCTION_INSTOCK_PRINT.getAlias()),
    PRODUCTION_INSTOCK_HANDOVER(XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PRODUCTION_INSTOCK_HANDOVER.getAlias()),
    PRODUCTION_INSTOCK_DEL(XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PRODUCTION_INSTOCK_DELETE.getAlias()),

    RETURNED_MATERIEL_INSTOCK_BATCH_EDIT(XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.RETURNED_MATERIEL_INSTOCK_UPDATE.getAlias()),
    RETURNED_MATERIEL_INSTOCK_PRINT(XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.RETURNED_MATERIEL_INSTOCK_PRINT.getAlias()),
    RETURNED_MATERIEL_INSTOCK_HANDOVER(XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.RETURNED_MATERIEL_INSTOCK_HANDOVER.getAlias()),
    RETURNED_MATERIEL_INSTOCK_DEL(XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.RETURNED_MATERIEL_INSTOCK_DELETE.getAlias()),

    CONTRACT_OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum. CONTRACT_OUTSTOCK_UPDATE.getAlias()),
    CONTRACT_OUTSTOCK_PRINT(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum. CONTRACT_OUTSTOCK_PRINT.getAlias()),
    CONTRACT_OUTSTOCK_HANDOVER(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(), SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_HANDOVER.getAlias()),
    CONTRACT_OUTSTOCK_DEL(XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum. CONTRACT_OUTSTOCK_DELETE.getAlias()),

    RETURNED_PURCHASE_OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.RETURNED_PURCHASE_OUTSTOCK_UPDATE.getAlias()),
    RETURNED_PURCHASE_OUTSTOCK_PRINT(XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.RETURNED_PURCHASE_OUTSTOCK_PRINT.getAlias()),
    RETURNED_PURCHASE_OUTSTOCK_HANDOVER(XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.RETURNED_PURCHASE_OUTSTOCK_HANDOVER.getAlias()),
    RETURNED_PURCHASE_OUTSTOCK_DEL(XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.RETURNED_PURCHASE_OUTSTOCK_DELETE.getAlias()),

    OTHER_OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.OUTSTOCK_UPDATE.getAlias()),
    OTHER_OUTSTOCK_PRINT(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.OUTSTOCK_PRINT.getAlias()),
    OTHER_OUTSTOCK_HANDOVER(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.OUTSTOCK_HANDOVER.getAlias()),
    OTHER_OUTSTOCK_DEL(XbbRefTypeEnum.OTHER_OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.OUTSTOCK_DELETE.getAlias()),
    INSTOCK_BATCH_EDIT(XbbRefTypeEnum.INSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.INSTOCK_UPDATE.getAlias()),
    INSTOCK_HANDOVER(XbbRefTypeEnum.INSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.INSTOCK_HANDOVER.getAlias()),
    INSTOCK_CANCEL(XbbRefTypeEnum.INSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.INSTOCK_PRINT.getAlias()),
    INSTOCK_DEL(XbbRefTypeEnum.INSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.INSTOCK_DELETE.getAlias()),

    OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.OUTSTOCK_UPDATE.getAlias()),
    OUTSTOCK_HANDOVER(XbbRefTypeEnum.OUTSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.OUTSTOCK_HANDOVER.getAlias()),
    OUTSTOCK_CANCEL(XbbRefTypeEnum.OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.OUTSTOCK_PRINT.getAlias()),
    OUTSTOCK_DEL(XbbRefTypeEnum.OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.OUTSTOCK_DELETE.getAlias()),
    PRODUCTION_MATERIEL_OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PRODUCTION_MATERIEL_OUTSTOCK_UPDATE.getAlias()),
    PRODUCTION_MATERIEL_OUTSTOCK_PRINT(XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PRODUCTION_MATERIEL_OUTSTOCK_PRINT.getAlias()),
    PRODUCTION_MATERIEL_OUTSTOCK_HANDOVER(XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PRODUCTION_MATERIEL_OUTSTOCK_HANDOVER.getAlias()),
    PRODUCTION_MATERIEL_OUTSTOCK_DEL(XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PRODUCTION_MATERIEL_OUTSTOCK_DELETE.getAlias()),

    WORK_ORDER_OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.WORK_ORDER_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.WORK_ORDER_OUTSTOCK_UPDATE.getAlias()),
    WORK_ORDER_OUTSTOCK_PRINT(XbbRefTypeEnum.WORK_ORDER_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.WORK_ORDER_OUTSTOCK_PRINT.getAlias()),
    WORK_ORDER_OUTSTOCK_HANDOVER(XbbRefTypeEnum.WORK_ORDER_OUTSTOCK.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.WORK_ORDER_OUTSTOCK_HANDOVER.getAlias()),
    WORK_ORDER_OUTSTOCK_DEL(XbbRefTypeEnum.WORK_ORDER_OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.WORK_ORDER_OUTSTOCK_DELETE.getAlias()),

    TRANSFER_BATCH_EDIT(XbbRefTypeEnum.TRANSFER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.TRANSFER_UPDATE.getAlias()),
    TRANSFER_HANDOVER(XbbRefTypeEnum.TRANSFER.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.TRANSFER_HANDOVER.getAlias()),
    TRANSFER_CANCEL(XbbRefTypeEnum.TRANSFER.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.TRANSFER_PRINT.getAlias()),
    TRANSFER_DEL(XbbRefTypeEnum.TRANSFER.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.TRANSFER_DELETE.getAlias()),

    INVENTORY_BATCH_EDIT(XbbRefTypeEnum.INVENTORY.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.INVENTORY_UPDATE.getAlias()),
    INVENTORY_HANDOVER(XbbRefTypeEnum.INVENTORY.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.INVENTORY_HANDOVER.getAlias()),
    INVENTORY_CANCEL(XbbRefTypeEnum.INVENTORY.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.INVENTORY_PRINT.getAlias()),
    INVENTORY_DEL(XbbRefTypeEnum.INVENTORY.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.INVENTORY_DELETE.getAlias()),

    RETURNED_PURCHASE_BATCH_EDIT(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.RETURN_PURCHASE_UPDATE.getAlias()),
    RETURNED_PURCHASE_CANCEL(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.RETURN_PURCHASE_PRINT.getAlias()),
    RETURNED_PURCHASE_HANDOVER(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.RETURNED_PURCHASE_HANDOVER.getAlias()),
    RETURNED_PURCHASE_DEL(XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.RETURN_PURCHASE_DELETE.getAlias()),

    PRODUCT_USER_PORTION(XbbRefTypeEnum.PRODUCT.getCode(),SaasBatchEnum.USER_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    PPODUCT_DEL_USER_PORTION(XbbRefTypeEnum.PRODUCT.getCode(), SaasBatchEnum.DEL_USER_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    PRODUCT_DEP_PORTION(XbbRefTypeEnum.PRODUCT.getCode(),SaasBatchEnum.DEP_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    PPODUCT_DEL_DEP_PORTION(XbbRefTypeEnum.PRODUCT.getCode(), SaasBatchEnum.DEL_DEP_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    PRODUCT_ONLINE(XbbRefTypeEnum.PRODUCT.getCode(),SaasBatchEnum.ONLINE, ProPermissionAliasEnum.PRODUCT_ONLINE.getAlias()),
    PRODUCT_OFFLINE(XbbRefTypeEnum.PRODUCT.getCode(),SaasBatchEnum.OFFLINE, ProPermissionAliasEnum.PRODUCT_ONLINE.getAlias()),
    PRODUCT_BATCH_EDIT(XbbRefTypeEnum.PRODUCT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    PRODUCT_DEL(XbbRefTypeEnum.PRODUCT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PRODUCT_DELETE.getAlias()),

    WAIT_PURCHASE_PURCHASE(XbbRefTypeEnum.WAIT_PURCHASE.getCode(),SaasBatchEnum.PURCHASE, ProPermissionAliasEnum.PURCHASE_ADD.getAlias()),
    SMART_REPLENISHMENT_PURCHASE(XbbRefTypeEnum.SMART_REPLENISHMENT.getCode(),SaasBatchEnum.PURCHASE, ProPermissionAliasEnum.PURCHASE_ADD.getAlias()),
    WAIT_INSTOCK_PURCHASE(XbbRefTypeEnum.WAIT_INSTOCK_PURCHASE.getCode(),SaasBatchEnum.WAIT_INSTOCK, ProPermissionAliasEnum.PURCHASE_ADD.getAlias()),
    WAIT_OUTSTOCK_PURCHASE(XbbRefTypeEnum.WAIT_OUTSTOCK.getCode(),SaasBatchEnum.WAIT_OUTSTOCK, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_ADD.getAlias()),

    REFUND_BATCH_EDIT(XbbRefTypeEnum.REFUND.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.REFUND_EDIT.getAlias()),
    REFUND_HANDOVER(XbbRefTypeEnum.REFUND.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.REFUND_HANDOVER.getAlias()),
    REFUND_PRINT(XbbRefTypeEnum.REFUND.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.REFUND_PRINT.getAlias()),
    REFUND_ADD_MAIN_USER(XbbRefTypeEnum.REFUND.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.REFUND_EDIT.getAlias()),
    REFUND_DEL_MAIN_USER(XbbRefTypeEnum.REFUND.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.REFUND_EDIT.getAlias()),
    REFUND_ADD_COUSER(XbbRefTypeEnum.REFUND.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.REFUND_EDIT.getAlias()),
    REFUND_DEL_COUSER(XbbRefTypeEnum.REFUND.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.REFUND_EDIT.getAlias()),
    REFUND_DEL(XbbRefTypeEnum.REFUND.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.REFUND_DEL.getAlias()),

    WORK_ORDER_BATCH_EDIT(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.WORK_ORDER_UPDATE.getAlias()),
    WORK_ORDER_DEL(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.WORK_ORDER_DELETE.getAlias()),
    WORK_ORDER_ADD_COUSER(XbbRefTypeEnum.WORK_ORDER.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.WORK_ORDER_UPDATE.getAlias()),
    WORK_ORDER_DEL_COUSER(XbbRefTypeEnum.WORK_ORDER.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.WORK_ORDER_UPDATE.getAlias()),
    WORK_ORDER_PRINT(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.WORK_ORDER_PRINT.getAlias()),
    WORK_ORDER_ADD_LABEL(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasBatchEnum.ADD_LABEL, ProPermissionAliasEnum.WORK_ORDER_UPDATE.getAlias()),
    WORK_ORDER_REMOVE_LABEL(XbbRefTypeEnum.WORK_ORDER.getCode(),SaasBatchEnum.REMOVE_LABEL, ProPermissionAliasEnum.WORK_ORDER_UPDATE.getAlias()),

    QUOTATION_BATCH_EDIT(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_HANDOVER(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.QUOTATION_HANDOVER.getAlias()),
    QUOTATION_BATCH_PRINT(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.QUOTATION_PRINT.getAlias()),
    QUOTATION_COMMUNICATE_NOTIFY(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    QUOTATION_ADD_MAIN_USER(XbbRefTypeEnum.QUOTATION.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_DEL_MAIN_USER(XbbRefTypeEnum.QUOTATION.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_ADD_COUSER(XbbRefTypeEnum.QUOTATION.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_DEL_COUSER(XbbRefTypeEnum.QUOTATION.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_ARCHIVE_BATCH(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_UNARCHIVE_BATCH(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.QUOTATION_UPDATE.getAlias()),
    QUOTATION_DEL(XbbRefTypeEnum.QUOTATION.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.QUOTATION_DELETE.getAlias()),

    PAYMENT_SHEET_EDIT(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PAYMENT_SHEET_UPDATE.getAlias()),
    PAYMENT_SHEET_BATCH_HANDOVER(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PAYMENT_SHEET_HANDOVER.getAlias()),
    PAYMENT_SHEET_BATCH_PRINT(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PAYMENT_SHEET_PRINT.getAlias()),
    PAYMENT_SHEET_BATCH_ADD_MAIN_USER(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.PAYMENT_SHEET_UPDATE.getAlias()),
    PAYMENT_SHEET_BATCH_DEL_MAIN_USER(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.PAYMENT_SHEET_UPDATE.getAlias()),
    PAYMENT_SHEET_BATCH_ADD_COUSER(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.PAYMENT_SHEET_UPDATE.getAlias()),
    PAYMENT_SHEET_BATCH_DEL_COUSER(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.PAYMENT_SHEET_UPDATE.getAlias()),
    PAYMENT_SHEET_MERGE_INVOICE(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.MERGE_INVOICE, ProPermissionAliasEnum.INVOICE_ADD.getAlias()),
    PAYMENT_SHEET_DEL(XbbRefTypeEnum.PAYMENT_SHEET.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PAYMENT_SHEET_DELETE.getAlias()),

    CREDIT_LIMIT_FREEZE(XbbRefTypeEnum.CREDIT_LIMIT.getCode(),SaasBatchEnum.CREDIT_LIMIT_FREEZE, ProPermissionAliasEnum.CREDIT_LIMIT_FREEZE.getAlias()),
    CREDIT_LIMIT_UNFREEZE(XbbRefTypeEnum.CREDIT_LIMIT.getCode(),SaasBatchEnum.CREDIT_LIMIT_UNFREEZE, ProPermissionAliasEnum.CREDIT_LIMIT_FREEZE.getAlias()),
    CREDIT_TEMPORARY_REVOKE(XbbRefTypeEnum.CREDIT_TEMPORARY_LIMIT.getCode(),SaasBatchEnum.CREDIT_TEMPORARY_REVOKE, ProPermissionAliasEnum.CREDIT_TEMPORARY_LIMIT_REVOKE.getAlias()),
    // 暂去掉重新生效
    // CREDIT_TEMPORARY_NORMAL(XbbRefTypeEnum.CREDIT_TEMPORARY_LIMIT.getCode(),SaasBatchEnum.CREDIT_TEMPORARY_NORMAL, ProPermissionAliasEnum.CREDIT_TEMPORARY_LIMIT_REVOKE.getAlias()),

    PAY_SHEET_EDIT(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PAY_SHEET_UPDATE.getAlias()),
    PAY_SHEET_BATCH_HANDOVER(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.PAY_SHEET_HANDOVER.getAlias()),
    PAY_SHEET_BATCH_PRINT(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PAY_SHEET_PRINT.getAlias()),
    PAY_SHEET_BATCH_ADD_MAIN_USER(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.PAY_SHEET_UPDATE.getAlias()),
    PAY_SHEET_BATCH_DEL_MAIN_USER(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.PAY_SHEET_UPDATE.getAlias()),
    PAY_SHEET_BATCH_ADD_COUSER(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.PAY_SHEET_UPDATE.getAlias()),
    PAY_SHEET_BATCH_DEL_COUSER(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.PAY_SHEET_UPDATE.getAlias()),
    PAY_SHEET_MERGE_INVOICE(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.MEEGE_PURCHASE_INVOICE, ProPermissionAliasEnum.PURCHASE_INVOICE_ADD.getAlias()),
    PAY_SHEET_DEL(XbbRefTypeEnum.PAY_SHEET.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PAY_SHEET_DELETE.getAlias()),

    PURCHASE_INVOICE_BATCH_EDIT(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PURCHASE_INVOICE_UPDATE.getAlias()),
    PURCHASE_INVOICE_BATCH_PRINT(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.PURCHASE_INVOICE_PRINT.getAlias()),
    PURCHASE_INVOICE_CANCEL(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasBatchEnum.CANCEL, ProPermissionAliasEnum.PURCHASE_INVOICE_CANCEL.getAlias()),
    PURCHASE_INVOICE_REVERT_CANCEL(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasBatchEnum.REVERT_CANCEL, "1"),
    PURCHASE_INVOICE_DEL(XbbRefTypeEnum.PURCHASE_INVOICE.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PURCHASE_INVOICE_DELETE.getAlias()),


    //市场活动（底部操作）
    MARKET_ACTIVITY_BATCH_EDIT(XbbRefTypeEnum.MARKET_ACTIVITY.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.MARKET_ACTIVITY_UPDATE.getAlias()),
    MARKET_ACTIVITY_DEL(XbbRefTypeEnum.MARKET_ACTIVITY.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.MARKET_ACTIVITY_DELETE.getAlias()),
    MARKET_ACTIVITY_HANDOVER(XbbRefTypeEnum.MARKET_ACTIVITY.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.MARKET_ACTIVITY_HANDOVER.getAlias()),

    CLUE_DISTRIBUTION(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CLUE_DISTRIBUTION.getAlias()),
    CLUE_BATCH_ADD_TEAM(XbbRefTypeEnum.ALL_CLUE.getCode(), SaasBatchEnum.ADD_TEAM, ProPermissionAliasEnum.CLUE_DISTRIBUTION.getAlias()),
    CLUE_HANDOVER(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CLUE_HANDOVER.getAlias()),
    CLUE_ISOLATION_HANDOVER(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.HANDOVER_CHANGE_MAIN, ProPermissionAliasEnum.CLUE_HANDOVER.getAlias()),
    CLUE_BATCH_EDIT(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_BACK(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.BACK_CUSTOMER, ProPermissionAliasEnum.CLUE_BACK.getAlias()),
    CLUE_DEL_MAIN_USER(XbbRefTypeEnum.ALL_CLUE.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_BATCH_DISBAND_TEAM(XbbRefTypeEnum.ALL_CLUE.getCode(), SaasBatchEnum.DISBAND_TEAM, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_ADD_TEAM_PERSON(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_ADD_ISOLATION_TEAM_PERSON(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.ADD_ISOLATION_TEAM_PERSON, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_DEL_COUSER(XbbRefTypeEnum.ALL_CLUE.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_DEL_ISOLATION_COUSER(XbbRefTypeEnum.ALL_CLUE.getCode(), SaasBatchEnum.DEL_ISOLATION_TEAM_PERSON, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_COMMUNICATE_NOTIFY(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),
    CLUE_ARCHIVE_BATCH(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.CLUE_ARCHIVE.getAlias()),
    CLUE_UNARCHIVE_BATCH(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.CLUE_ARCHIVE.getAlias()),
    CLUE_DEL(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CLUE_DELETE.getAlias()),
    /**
     * 全部线索底部发短信按钮
     */
    CLUE_SEND_SMS(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    /**
     * 全部线索底部变更公海分组按钮
     */
    CLUE_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.ALL_CLUE.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CLUE_SWITCH_PUBLIC_GROUP.getAlias()),

    CLUE_PUBLIC_DISTRIBUTION(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasBatchEnum.DISTRIBUTION, ProPermissionAliasEnum.CLUE_DISTRIBUTION.getAlias()),
    CLUE_PUBLIC_GET_CUSTOMER(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasBatchEnum.GET_CUSTOMER, ProPermissionAliasEnum.CLUE_GAIN.getAlias()),
    CLUE_PUBLIC_BATCH_EDIT(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.CLUE_UPDATE.getAlias()),
    CLUE_PUBLIC_DEL(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.CLUE_DELETE.getAlias()),
    /**
     * 线索公海池底部发短信按钮
     */
    CLUE_PUBLIC_SEND_SMS(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasBatchEnum.SEND_SMS, ProPermissionAliasEnum.SMS_SEND.getAlias()),
    /**
     * 线索公海池底部变更公海分组按钮
     */
    CLUE_PUBLIC_SWITCH_PUBLIC_GROUP(XbbRefTypeEnum.CLUE_PUBLIC.getCode(),SaasBatchEnum.SWITCH_PUBLIC_GROUP, ProPermissionAliasEnum.CLUE_SWITCH_PUBLIC_GROUP.getAlias()),

    CLUE_RECYCLE_REVERT(XbbRefTypeEnum.CLUE_RECYCLE.getCode(),SaasBatchEnum.REVERT_BATCH, "1"),
    CLUE_RECYCLE_DELETE_COMPLETE(XbbRefTypeEnum.CLUE_RECYCLE.getCode(),SaasBatchEnum.REMOVE_COMPLETELY, ProPermissionAliasEnum.CLUE_DELETE.getAlias()),
    /**
     * 经销商底部操作按钮
     */
    DISTRIBUTOR_HANDOVER(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.DISTRIBUTOR_HANDOVER.getAlias()),
    DISTRIBUTOR_BATCH_EDIT(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.DISTRIBUTOR_EDIT.getAlias()),
    DISTRIBUTOR_DEL_MAIN_USER(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.DISTRIBUTOR_EDIT.getAlias()),
    DISTRIBUTOR_ADD_TEAM_PERSON(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.DISTRIBUTOR_EDIT.getAlias()),
    DISTRIBUTOR_DEL_TEAM_PERSON(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.DISTRIBUTOR_EDIT.getAlias()),
    DISTRIBUTOR_BATCH_DEL(XbbRefTypeEnum.DISTRIBUTOR_MANAGEMENT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.DISTRIBUTOR_DELETE.getAlias()),
    /**
     * 联系人底部操作按钮
     */
    DISTRIBUTOR_CONTACT_BATCH_EDIT(XbbRefTypeEnum.DISTRIBUTOR_CONTACT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.DISTRIBUTOR_CONTACT_EDIT.getAlias()),
    DISTRIBUTOR_CONTACT_BATCH_DEL(XbbRefTypeEnum.DISTRIBUTOR_CONTACT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.DISTRIBUTOR_CONTACT_DELETE.getAlias()),
    /**
     * 账号管理底部操作按钮
     */
    DISTRIBUTOR_ACCOUNT_BATCH_EDIT(XbbRefTypeEnum.DISTRIBUTOR_ACCOUNT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.DISTRIBUTOR_ACCOUNT_EDIT.getAlias()),
    DISTRIBUTOR_ACCOUNT_BATCH_ENABLE(XbbRefTypeEnum.DISTRIBUTOR_ACCOUNT.getCode(),SaasBatchEnum.DISTRIBUTOR_ACCOUNT_ENABLE, ProPermissionAliasEnum.DISTRIBUTOR_ACCOUNT_ENABLE.getAlias()),
    DISTRIBUTOR_ACCOUNT_BATCH_DISABLE(XbbRefTypeEnum.DISTRIBUTOR_ACCOUNT.getCode(),SaasBatchEnum.DISTRIBUTOR_ACCOUNT_DISABLE, ProPermissionAliasEnum.DISTRIBUTOR_ACCOUNT_ENABLE.getAlias()),

    /**
     * 对账单
     */
    STATEMENT_ARCHIVE(XbbRefTypeEnum.CUSTOMER_STATEMENT_STATISTIC.getCode(), SaasBatchEnum.ARCHIVE_BATCH,ProPermissionAliasEnum.ARCHIVE_STATEMENT.getAlias()),
    STATEMENT_UNARCHIVE(XbbRefTypeEnum.CUSTOMER_STATEMENT_STATISTIC.getCode(), SaasBatchEnum.UNARCHIVE_BATCH,ProPermissionAliasEnum.ARCHIVE_STATEMENT.getAlias()),
    STATEMENT_DEL(XbbRefTypeEnum.CUSTOMER_STATEMENT_STATISTIC.getCode(),SaasBatchEnum.DEL,ProPermissionAliasEnum.DEL_STATEMENT.getAlias()),

    /**
     * 订货单底部操作按钮
     */
    ORDER_BATCH_EDIT(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_HANDOVER(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.ORDER_HANDOVER.getAlias()),
    ORDER_BATCH_PRINT(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.ORDER_PRINT.getAlias()),
    ORDER_ADD_MAIN_USER(XbbRefTypeEnum.ORDER.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_DEL_MAIN_USER(XbbRefTypeEnum.ORDER.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_ADD_TEAM_PERSON(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_DEL_COUSER(XbbRefTypeEnum.ORDER.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_ARCHIVE_BATCH(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.ARCHIVE_BATCH, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_UNARCHIVE_BATCH(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.UNARCHIVE_BATCH, ProPermissionAliasEnum.ORDER_EDIT.getAlias()),
    ORDER_DEL(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.ORDER_DELETE.getAlias()),
    ORDER_MERGE_INVOICE(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.MERGE_INVOICE, ProPermissionAliasEnum.INVOICE_ADD.getAlias()),
    ORDER_MERGE_PAYMENT(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.MERGE_PAYMENT, ProPermissionAliasEnum.PAYMENT_SHEET_ADD.getAlias()),
    // ORDER_COMMUNICATE_NOTIFY(XbbRefTypeEnum.ORDER.getCode(),SaasBatchEnum.COMMUNICATE_NOTIFY, "1"),


    /**
     * 退货单底部操作按钮
     */
    RETURN_BATCH_EDIT(XbbRefTypeEnum.RETURN.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.RETURN_EDIT.getAlias()),
    RETURN_HANDOVER(XbbRefTypeEnum.RETURN.getCode(),SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.RETURN_HANDOVER.getAlias()),
    RETURN_PRINT(XbbRefTypeEnum.RETURN.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.RETURN_PRINT.getAlias()),
    RETURN_ADD_MAIN_USER(XbbRefTypeEnum.RETURN.getCode(), SaasBatchEnum.ADD_MAIN_USER, ProPermissionAliasEnum.RETURN_EDIT.getAlias()),
    RETURN_DEL_MAIN_USER(XbbRefTypeEnum.RETURN.getCode(), SaasBatchEnum.DEL_MAIN_USER, ProPermissionAliasEnum.RETURN_EDIT.getAlias()),
    RETURN_ADD_COUSER(XbbRefTypeEnum.RETURN.getCode(), SaasBatchEnum.ADD_TEAM_PERSON, ProPermissionAliasEnum.RETURN_EDIT.getAlias()),
    RETURN_DEL_COUSER(XbbRefTypeEnum.RETURN.getCode(), SaasBatchEnum.DEL_TEAM_PERSON, ProPermissionAliasEnum.RETURN_EDIT.getAlias()),
    RETURN_DEL(XbbRefTypeEnum.RETURN.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.RETURN_DELETE.getAlias()),

    /**
     * 出库退货单
     */
    ORDER_OUTSTOCK_BATCH_EDIT(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum. CONTRACT_OUTSTOCK_UPDATE.getAlias()),
    ORDER_OUTSTOCK_PRINT(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum. CONTRACT_OUTSTOCK_PRINT.getAlias()),
    ORDER_OUTSTOCK_HANDOVER(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(), SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.CONTRACT_OUTSTOCK_HANDOVER.getAlias()),
    ORDER_OUTSTOCK_DEL(XbbRefTypeEnum.ORDER_OUTSTOCK.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum. CONTRACT_OUTSTOCK_DELETE.getAlias()),


    //其他收入单
    OTHER_INCOME_EDIT(XbbRefTypeEnum.OTHER_INCOME.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.OTHER_INCOME_UPDATE.getAlias()),
    OTHER_INCOME_BATCH_PRINT(XbbRefTypeEnum.OTHER_INCOME.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.OTHER_INCOME_PRINT.getAlias()),
    //其他收入单
    OTHER_EXPENSE_EDIT(XbbRefTypeEnum.OTHER_EXPENSE.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.OTHER_EXPENSE_UPDATE.getAlias()),
    OTHER_EXPENSE_BATCH_PRINT(XbbRefTypeEnum.OTHER_EXPENSE.getCode(),SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.OTHER_EXPENSE_PRINT.getAlias()),
    //资金调拨单
    FUND_TRANSFER_EDIT(XbbRefTypeEnum.FUND_TRANSFER.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.FUND_TRANSFER_UPDATE.getAlias()),
    FUND_TRANSFER_BATCH_PRINT(XbbRefTypeEnum.FUND_TRANSFER.getCode(), SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.FUND_TRANSFER_PRINT.getAlias()),

    /**
     * 成本调整单
     */
    COST_ADJUST_EDIT(XbbRefTypeEnum.COST_ADJUST.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.COST_ADJUST_EDIT.getAlias()),
    COST_ADJUST_PRINT(XbbRefTypeEnum.COST_ADJUST.getCode(), SaasBatchEnum.BATCH_PRINT, ProPermissionAliasEnum.COST_ADJUST_PRINT.getAlias()),
    COST_ADJUST_HANDOVER(XbbRefTypeEnum.COST_ADJUST.getCode(), SaasBatchEnum.HANDOVER, ProPermissionAliasEnum.COST_ADJUST_HANDOVER.getAlias()),

    //仓库移交
    WAREHOUSE_HANDOVER(XbbRefTypeEnum.WAREHOUSE.getCode(),SaasBatchEnum.HANDOVER,ProPermissionAliasEnum.WAREHOUSE_HANDOVER.getAlias()),

    /**
     * 知识库
     */
    KNOWLEDGE_ENALBE(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(), SaasBatchEnum.DISTRIBUTOR_ACCOUNT_ENABLE, null),
    KNOWLEDGE_BLOCK_UP(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(), SaasBatchEnum.BLOCK_UP, null),
    ADD_KNOWLEDGE_TAGS(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(),SaasBatchEnum.ADD_LABEL, null),
    REMOVE_KNOWLEDGE_TAGS(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(),SaasBatchEnum.REMOVE_LABEL, null),
    KNOWLEDGE_DELETE(XbbRefTypeEnum.KNOWLEDGE_BASE.getCode(),SaasBatchEnum.DEL, null),

    //服务项目
    SERVICE_PROJECT_USER_PORTION(XbbRefTypeEnum.SERVICE_PROJECT.getCode(),SaasBatchEnum.USER_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    SERVICE_PROJECT_DEL_USER_PORTION(XbbRefTypeEnum.SERVICE_PROJECT.getCode(), SaasBatchEnum.DEL_USER_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    SERVICE_PROJECT_DEP_PORTION(XbbRefTypeEnum.SERVICE_PROJECT.getCode(),SaasBatchEnum.DEP_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    SERVICE_PROJECT_DEL_DEP_PORTION(XbbRefTypeEnum.SERVICE_PROJECT.getCode(), SaasBatchEnum.DEL_DEP_PORTION, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    SERVICE_PROJECT_ONLINE(XbbRefTypeEnum.SERVICE_PROJECT.getCode(),SaasBatchEnum.ONLINE, ProPermissionAliasEnum.PRODUCT_ONLINE.getAlias()),
    SERVICE_PROJECT_OFFLINE(XbbRefTypeEnum.SERVICE_PROJECT.getCode(),SaasBatchEnum.OFFLINE, ProPermissionAliasEnum.PRODUCT_ONLINE.getAlias()),
    SERVICE_PROJECT_BATCH_EDIT(XbbRefTypeEnum.SERVICE_PROJECT.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.PRODUCT_UPDATE.getAlias()),
    SERVICE_PROJECT_DEL(XbbRefTypeEnum.SERVICE_PROJECT.getCode(),SaasBatchEnum.DEL, ProPermissionAliasEnum.PRODUCT_DELETE.getAlias()),


    /**
     * 竞争对手列表页批量按钮
     */
    COMPETITOR_USER_PORTION(XbbRefTypeEnum.COMPETITOR.getCode(),SaasBatchEnum.USER_PORTION, ProPermissionAliasEnum.COMPETITOR_EDIT.getAlias()),
    COMPETITOR_DEL_USER_PORTION(XbbRefTypeEnum.COMPETITOR.getCode(), SaasBatchEnum.DEL_USER_PORTION, ProPermissionAliasEnum.COMPETITOR_EDIT.getAlias()),
    COMPETITOR_DEP_PORTION(XbbRefTypeEnum.COMPETITOR.getCode(),SaasBatchEnum.DEP_PORTION, ProPermissionAliasEnum.COMPETITOR_EDIT.getAlias()),
    COMPETITOR_DEL_DEP_PORTION(XbbRefTypeEnum.COMPETITOR.getCode(), SaasBatchEnum.DEL_DEP_PORTION, ProPermissionAliasEnum.COMPETITOR_EDIT.getAlias()),
    COMPETITOR_BATCH_EDIT(XbbRefTypeEnum.COMPETITOR.getCode(),SaasBatchEnum.BATCH_EDIT, ProPermissionAliasEnum.COMPETITOR_EDIT.getAlias()),
    COMPETITOR_DEL(XbbRefTypeEnum.COMPETITOR.getCode(),SaasBatchEnum.DEL,ProPermissionAliasEnum.COMPETITOR_DELETE.getAlias())
    ;

    private Integer businessType;
    private SaasBatchEnum anEnum;
    private String proPermissionAlias;

    ListBatchEnum(Integer businessType, SaasBatchEnum anEnum, String proPermissionAlias) {
        this.businessType = businessType;
        this.anEnum = anEnum;
        this.proPermissionAlias = proPermissionAlias;
    }

    public static List<ListBatchEnum> getByBusinessType(Integer businessType) {
        List<ListBatchEnum> list = new ArrayList<>();
        for (ListBatchEnum listBatchEnum : ListBatchEnum.values()) {
            if (Objects.equals(businessType, listBatchEnum.getBusinessType())) {
                list.add(listBatchEnum);
            }
        }
        return list;
    }

}
